package com.panda.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @Author: panda
 * @Date: 2022-05-18 15:15
 * @Description: 评论VO
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("文章评论")
public class CommentVo {
    @ApiModelProperty("评论ID")
    private Long id;
    //评论类型（0代表视频评论，1代表文章评论）
    @ApiModelProperty("评论类型")
    private String type;
    //视频或者文章id
    @ApiModelProperty("文章或视频ID")
    private Long ownerId;
    //根评论id
    @ApiModelProperty("父节点")
    private Long rootId;
    //评论内容
    @ApiModelProperty("评论内容")
    private String content;
    //所回复的目标评论的userid
    @ApiModelProperty("评论对象id")
    private Long toCommentUserId;
    //所回复的目标评论的username
    @ApiModelProperty("评论对象名称")
    private String toCommentUsername;
    //回复了具体哪一条评论的id
    @ApiModelProperty("回复哪一条评论")
    private Long toCommentId;
    //评论人
    @ApiModelProperty("创建人")
    private Long createBy;

    //评论时间
    @ApiModelProperty("创建时间")
    private Date createTime;
    //评论人
    @ApiModelProperty("评论人")
    private String username;
    @ApiModelProperty("创建人头像")
    private String avatar;
    @ApiModelProperty("子评论")
    private List<CommentVo> children;

}

